package cn.tedu.web.fqmz;

public class User {
    private Integer id;
    private String username;
    private  String password;
    private String name;
    private Boolean disabled;
    private Boolean enabled;

    public Integer getId() {
        return id;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", disabled=" + disabled +
                ", enabled=" + enabled +
                '}';
    }

    public String css() {
        return this.getDisabled() ? "disabled" : "enabled";
    }
    public String label() {
        return this.getDisabled() ? "禁用" : "启用";
    }

}
